package com.ysd.lis.entity.view;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysd.lis.entity.BaseEntityJpa;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.sql.Timestamp;

/**
 * <p>
 *
 * </p>
 *
 * @author pengchong
 * @since 2025-05-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "VIEW_APPLY_INFO")
@TableName("VIEW_APPLY_INFO")
public class ViewApplyInfo extends BaseEntityJpa {

    private static final long serialVersionUID = 1L;

    @TableField("NAME")
    @Column(name = "NAME")
    private String name;


    @TableField("TITLE")
    @Column(name = "TITLE")
    private String title;

    @TableField("CONTENT")
    @Column(name = "CONTENT")
    private String content;


    @TableField("REMARK")
    @Column(name = "REMARK")
    private String remark;

    @TableField("STATUS")
    @Column(name = "STATUS")
    private Integer status;

    @TableField("REMARK1")
    @Column(name = "REMARK1")
    private String remark1;

    @TableField("REMARK2")
    @Column(name = "REMARK2")
    private String remark2;

    @TableField("REMARK3")
    @Column(name = "REMARK3")
    private String remark3;

    @TableField("REMARK4")
    @Column(name = "REMARK4")
    private String remark4;

    @TableField("APPLYER")
    @Column(name = "APPLYER")
    private String applyer;

    @TableField("APPLY_NAME")
    @Column(name = "APPLY_NAME")
    private String applyName;

    @TableField("APPLY_TIME")
    @Column(name = "APPLY_TIME")
    private Timestamp applyTime;

    @TableField("AUDITER")
    @Column(name = "AUDITER")
    private String auditer;

    @TableField("AUDIT_TIME")
    @Column(name = "AUDIT_TIME")
    private Timestamp auditTime;

    @TableField("AUDIT_NAME")
    @Column(name = "AUDIT_NAME")
    private String auditName;

    @TableField("VIEW_TYPE")
    @Column(name = "VIEW_TYPE")
    private String viewType;

    @TableField("VIEW_SOURCE")
    @Column(name = "VIEW_SOURCE")
    private String viewSource;

    @TableField("COST_TIME")
    @Column(name = "COST_TIME")
    private String costTime;

    @TableField(exist = false)
    @Transient
    private String sql;

    @TableField(exist = false)
    @Transient
    private String keyword;

    @TableField(exist = false)
    @Transient
    private String flag;

    @TableField("CLOSER")
    @Column(name = "CLOSER")
    private String closer;

    @TableField("CLOSE_TIME")
    @Column(name = "CLOSE_TIME")
    private Timestamp closeTime;

    @TableField("CLOSE_NAME")
    @Column(name = "CLOSE_NAME")
    private String closeName;

}
